define(function (require, exports, module) {
    var angular = require('angular');
    require("pagination");
    require("angular-ui");
    var util = require("util");
    var api_prefix = G_CONFIG["api_prefix"]; //api前缀

    angular.module('ContractDredge', [])
        .controller('contractDredgeCtrl', ['$scope', '$routeParams', 'contractCommonService', function ($scope, $routeParams, contractCommonService) {
            var contractId = $routeParams.id;
            //获取合同信息
            contractCommonService.getContract(contractId, function (data) {
                $scope.contractBaseInfo = data.contract;
                $scope.$applyAsync();
            });
            $scope.dredges = {};
            //获取开通信息
            contractCommonService.getContractOrganizationInfo(contractId, function (data) {
                $scope.dredges = data;
                $scope.$applyAsync();
            });

        }]);
});